import request from '@/utils/request'

export const apiServiceWorkOrderConfig = () => request.get('service_work_order/getConfig')

export const apiServiceWorkOrderInfo = () => request.get('service_work_order/detail')

export const apiServiceWorkOrderUserInfo = () => request.get('service_work_order/userDetail')

/** S 产品 **/
export const apiServiceWorkOrderGoodsList = params => request.get('service_work_order/goodsLists', {
	params
})
/** S 产品 **/

/** S 订单 **/

export const apiServiceWorkOrderOrderList = params => request.get('service_work_order/orderLists', {
	params
})

// 订单详情
export const apiServiceWorkOrderOrderDetail = params => request.get('service_work_order/orderDetail', {
	params
})

export const apiServiceWorkOrderUserList = params => request.get('service_work_order/userOrderLists', {
	params
})

// 订单详情
export const apiServiceWorkOrderUserDetail = params => request.get('service_work_order/userOrderDetail', {
	params
})

export const apiServiceWorkOrderCancelOrder = data => request.post('service_work_order/cancelOrder', data)


export const apiAddServiceWorkOrderEvent = data => request.post('service_work_order/addEvent', data)


export const apiAddServiceWorkOrderApply = data => request.post('service_work_order/apply', data)

/** E 订单 **/